package com.ruoyi.project.system.personnel.service.impl;

import com.ruoyi.common.utils.text.Convert;
import com.ruoyi.project.system.personnel.domain.Info;
import com.ruoyi.project.system.personnel.mapper.InfoMapper;
import com.ruoyi.project.system.personnel.service.IinfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 人员信息业务层
 * @author LHF
 */
@Service
public class InfoServiceImpl implements IinfoService {

    @Autowired
    private InfoMapper infoMapper;

    @Override
    public List<Info> queryAllInfo(String userId, String userName, Integer sex, String deptName, Integer status) {
        return infoMapper.selectAllInfo(userId, userName, sex, deptName, status);
    }

    @Override
    public int deleteInfo(String ids) {
        return infoMapper.deleteInfo(Convert.toStrArray(ids));
    }
}
